]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
searchDisplay: Remove focus management code
authorJasper St. Pierre <jstpierre@mecheye.net>
Thu, 14 Feb 2013 19:37:50 +0000 (14:37 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Wed, 29 May 2013 15:32:49 +0000 (11:32 -0400)
It turns out that this focus code broke sometime in the 3.6 cycle --
when updating results, the focus is always on the text entry, so this
never gets called. We'll eventually replace it with something that
keeps track of the focused result meta, but for now, remove it.

https://bugzilla.gnome.org/show_bug.cgi?id=693836

js/ui/searchDisplay.js

index d7831a40356ad729361e7c4b307875e2b6cf43b7..ebacdec2a413f9da25e075490a85eff6e7889142 100644 (file)
@@ -218,22 +218,13 @@ const SearchResultsBase = new Lang.Class({
             this.provider.getResultMetas(results, Lang.bind(this, function(metas) {
                 this.clear();
 
-                // Hiding drops the key focus if we have it
-                let focus = global.stage.get_key_focus();
-
                 // To avoid CSS transitions causing flickering when
                 // the first search result stays the same, we hide the
                 // content while filling in the results.
                 this.actor.hide();
-
                 this._renderResults(metas);
-
                 this._setMoreIconVisible(this.hasMoreResults() && this.provider.canLaunchSearch);
-
                 this.actor.show();
-                if (this.actor.contains(focus))
-                    global.stage.set_key_focus(focus);
-
                 callback();
             }));
         }